<template>
  <span>
    <el-button round size="mini" @click="dialogAddressMethods">修改</el-button>
    <!-- 修改密码弹出框 -->
    <el-dialog title="密码" :visible.sync="dialogAddress" center>
      <div slot="title" class="header-title">
        <img src="../assets/pic@2x/address@2x.png" alt>
        <div style="font-weight:300;color:rgba(0,0,0)">密码修改</div>
      </div>
      <el-form :model="form">
        <el-form-item label="收币地址修改" :label-width="formLabelWidth">
          <el-input v-model="form.name" autocomplete="off" placeholder="请输入收货地址"></el-input>
        </el-form-item>
      </el-form>
      <div slot="footer" class="dialog-footer" style="height:100px;">
        <el-button
          type="primary"
          @click="dialogAddressMethods"
          style="float:none;width:40%;margin-right:0;"
        >确 定 修 改</el-button>
      </div>
    </el-dialog>
  </span>
</template>
<script>
export default {
  data() {
    return {
      dialogAddress: false,
      form: {
        name: ""
      },
      formLabelWidth: "120px"
    };
  },
  methods: {
    dialogAddressMethods() {
      this.dialogAddress = !this.dialogAddress;
      if (this.dialogAddress == true) {
        console.log("打开邮箱弹出框触发的事件");
      } else {
        console.log("关闭邮箱弹出框触发的事件");
      }
    }
  }
};
</script>
<style lang="less" scoped>
.el-button {
  float: right;
  margin: 20px 30px 0 0;
  background: #171c61;
  color: #fff;
}
</style>

